package controller;

import dto.ActionDTO;
import dto.RespDTO;
import dto.RespStatusTypeEnum;
import model.command.CommandTypeEnum;
import service.Store;

public class SetHandler implements CommandHandler {
    @Override
    public RespDTO handle(ActionDTO actionDTO, Store store) {
        store.set(actionDTO.getKey(), actionDTO.getValue());
        return new RespDTO(CommandTypeEnum.SET,RespStatusTypeEnum.SUCCESS, null);
    }
}
